home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4061 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: risky.ecs.umass.edu!usenet
  2. From: jvinson@cheux.ecs.umass.edu (Jack Vinson)
  3. Newsgroups: comp.lang.c
  4. Subject: Memory problems when LOTS of variables
  5. Date: 01 Feb 1996 12:11:13 -0500
  6. Organization: University of Massachusetts
  7. Message-ID: <woka27ug26.fsf@cheux.ecs.umass.edu>
  8. NNTP-Posting-Host: cheux.ecs.umass.edu
  9. X-Newsreader: September Gnus v0.32/Emacs 19.30
  10.  
  11.  
  12. I am working with a large body of C code, porting from a Unix system to
  13. Windows NT (MSVC 2.0).  The problem I am seeing is that allocation of
  14. certain variables corrupts previously allocated variables.
  15.  
  16. In the debugger, I watch the allocation and check out the variables.  It
  17. appears that a handful of the pointer variables are being set to odd
  18. values.  Before allocation, I get a message that "the expression cannot be
  19. evaluated" even though with most pointer variables I can at least evaluate
  20. them before allocation (they evaluate to garbage, of course).  
  21.  
  22. I am wondering if I am somehow running out of space on this machine and
  23. that the variables are being dropped somehow.  
  24.  
  25. If anyone has had similar problems, or can suggest where I should look for
  26. the source of the problem, please let me know.  This really has me
  27. stumped.  
  28.  
  29. Thanks,
  30.  
  31. -- 
  32. Jack Vinson                   The Purple Puddle Eater and Captain Jack
  33. jvinson@cheux.ecs.umass.edu   <http://www.cis.upenn.edu/~vinson/home.html>
  34. Sunderland, MA
  35. "Skin ain't got no tailored pockets."    - Eat _Sell_Me_a_God_
  36.